struct VS_INPUT
{
	float3 Pos : POSITION;
};

struct VS_OUTPUT
{
    float4 Pos : SV_POSITION;
};

//--------------------------------------------------------------------------------------
// Vertex Shader
//--------------------------------------------------------------------------------------
VS_OUTPUT VS( VS_INPUT input )
{
    VS_OUTPUT output = (VS_OUTPUT)0;
	output.Pos = float4(input.Pos, 1.0);
	
	return output;
}


//--------------------------------------------------------------------------------------
// Pixel Shader
//--------------------------------------------------------------------------------------
float4 PS(VS_OUTPUT input) : SV_Target
{
    return float4( 1.0f, 1.0f, 0.0f, 1.0f );    // Yellow, with Alpha = 1
}

technique11 triangle2d
{
	pass p0
	{
		SetVertexShader( CompileShader(vs_5_0, VS()) );
		SetGeometryShader(NULL);
		SetPixelShader( CompileShader(ps_5_0, PS()) );
	}
}